<?php echo $this->doctype('XHTML1_TRANSITIONAL') ?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="gl" lang="gl">
<head>
    <?php echo $this->headMeta() ?>
    <?php echo $this->headTitle() ?>
    
    <link rel="icon" type="image/vnd.microsoft.icon" href="<?php echo $this->baseUrl() ?>/favicon.ico" />
    <link rel="icon" type="image/png" href="<?php echo $this->baseUrl() ?>/images/favicon.png" />
        
    <?php echo $this->headLink()->appendStylesheet($this->baseUrl() . '/css/blueprint/screen.css', 'screen, projection')
                                ->appendStylesheet($this->baseUrl() . '/css/blueprint/print.css', 'print')
                                ->appendStylesheet($this->baseUrl() . '/css/blueprint/ie.css', 'screen, projection', 'lt IE 8')
                                ->appendStylesheet($this->baseUrl() . '/js/dijit/themes/tundra/tundra.css')
                                ->appendStylesheet($this->baseUrl() . '/js/dojo/resources/dojo.css')
                                ->appendStylesheet($this->baseUrl() . '/js/dojo/resources/dnd.css')

                                ->appendStylesheet($this->baseUrl() . '/css/admin.css') ?>
    
    
    
    <?php /*echo $this->headScript()->appendFile($this->baseUrl() . '/js/dojo/dojo.js', 'text/javascript')*/ ?>    
    <?php $this->headScript()
               ->setAllowArbitraryAttributes(true)
               ->appendFile($this->baseUrl() . '/js/dojo/dojo.js', 'text/javascript', array('djConfig' => 'parseOnLoad: true'))
               ->appendFile($this->baseUrl() . '/js/dojo/galdic.js', 'text/javascript')
               ->captureStart() ?>
        dojo.require("dojo.parser");
        dojo.require("dojo.dnd.Source");
    
        dojo.require("dojox.data.QueryReadStore");
        dojo.require("dijit.form.ComboBox");
        
        dojo.require("dijit.form.TextBox");
        dojo.require("dijit.form.Button");
        
        dojo.require("dijit.Dialog");
        dojo.require("dijit.layout.ContentPane");
        dojo.require("dijit.layout.AccordionContainer");
        
        dojo.require("dijit.Editor");
        dojo.require("dijit._editor.plugins.FontChoice"); // 'fontName','fontSize','formatBlock'
        dojo.require("dijit._editor.plugins.TextColor");                
    <?php $this->headScript()->captureEnd() ?>
    
    <?php echo $this->headScript() ?> 
    
</head>
<body class="tundra">
    
<div class="container">
    <div id="header" class="span-24 last">
        <h1 class="title"><?php echo $this->escape($this->title) ?></h1>
        
        <?php if(isset($this->username)): ?>
        <div id="nav">        
            <?php echo $this->render('nav.phtml') ?>        
        </div>
        <?php endif; ?>
    </div>
    
    <div id="main" class="span-24 last">
        <?php echo $this->layout()->content ?>
    </div>
    
    <?php /*echo $this->layout()->abreviaturas*/ ?>
    
    <div id="footer" class="span-24 last">
        <div class="quiet">            
            <img src="<?php echo $this->baseUrl() ?>/images/logo.png" alt="GalDic" align="right" />
            GalDic, Proyecto fin de curso (<abbr title="Curso de Desarrollo Web Avanzado">CDWA</abbr>) <br />
            <a href="mailto:tomasvf@gmail.com">Tomás Vilariño Fidalgo</a>
        </div>                   
    </div>	
</div>
    
</body>
</html>